package com.ovopark.organize.server.service;

import com.ovopark.organize.server.model.entity.FranchiseesApprovalTemplateField;
import com.ovopark.organize.server.model.entity.FranchiseesApprovalTemplateSection;

import java.util.List;

/**
 * @Description: 加盟商立项模板字段
 * @Author:zll
 * @Date:
 */
public interface FranchiseesApprovalTemplateFieldService {
    
    /** 
     * @description: 获取分组下的字段
     * @param: [sectionId]
     * @return: java.util.List<com.ovopark.organize.server.model.entity.FranchiseesApprovalTemplateField>
     * @author wxb
     * @date: 2024/4/12 14:52
     */ 
    List<FranchiseesApprovalTemplateField> getFieldListBySectionId(Integer sectionId);

    /**
     * @description: 获取分组下的字段值
     * @param: [sectionId, groupId]
     * @return: java.util.List<com.ovopark.organize.server.model.vo.FranchiseesApprovalTemplateFieldVo>
     * @author wxb
     * @date: 2024/4/14 11:53
     */
//    List<FranchiseesApprovalTemplateField> getFieldValueListBySectionId(Integer sectionId, Integer templateId, Integer groupId, Integer approvalId, String version);

    void batchSaveFieldList(List<FranchiseesApprovalTemplateField> fieldVoList);

    FranchiseesApprovalTemplateField saveOrUpdateById(FranchiseesApprovalTemplateField field);

    /** 
     * @description: 保存配置
     * @param: [sectionList]
     * @return: void
     * @author wxb
     * @date: 2024/6/1 12:56
     */ 
    void insert (List<FranchiseesApprovalTemplateSection> sectionList);


}
